<?php 
	Zend_Loader::loadClass("AuthModel");
	$auth = new AuthModel();
	if($auth->isLoggedIn()){
		$username = $auth->getUserInfo("username");
	}else{
		$username = "unknown";
	}
?>

<!-- Status bar -->
<div id="status-bar"><div class="container_12">
	<ul id="status-infos">
		<?php if($auth->getUserInfo('type') != ADMIN_USER):?>
			<li class="spaced">ユーザ: <strong><?php echo $username?></strong></li>
		<?php else :?>
			<li class="spaced">管理者: <strong><?php echo $username?></strong></li>
		<?php endif;?>
		<li><a href="/login/logout" class="button red" title="Logout"><span class="smaller">ログアウト</span></a></li>
	</ul>

	
	<?php $nav = $this->nav?>
	<?php if($nav):?>
	<ul id="breadcrumb">
		<?php foreach ($nav as $key => $value):?>
			<li><a href="<?php echo $value?>" title="<?php echo $key?>"><?php echo $key?></a></li>
		<?php endforeach;?>
	</ul>
	<?php endif;?>



</div></div>

<!-- End status bar -->